
<div>
  <div class="modal-card">
    <label>
      上级部门
    </label>
    <d-cascader
      [options]="options"
      [(ngModel)]="data.pathPids"
      [dropdownPanelClass]="'custom-class'"
      [allowClear]="true"
      [canSelectParent]="true"
      class="form-input-box"
      (ngModelChange)="onChanges($event)"
      [showPath]="true"
    ></d-cascader>
  </div>
  <div class="modal-card mt-3">
    <label>
      部门编码
    </label>
    <input type="text" dTextInput class="form-input-box" name="departmentCode" [(ngModel)]="PutDepartment.departmentCode">
  </div>
  <div class="modal-card">
    <label>
    </label>
    <div class="invalid" *ngIf="data.display&&!PutDepartment.departmentCode">*值不能为空</div>
  </div>
  <div class="modal-card mt-3">
    <label>
      部门名称
    </label>
    <input type="text" dTextInput class="form-input-box" name="name" [(ngModel)]="PutDepartment.name">
  </div>
  <div class="modal-card">
    <label>
    </label>
    <div class="invalid" *ngIf="data.display&&!PutDepartment.name">*值不能为空</div>
  </div>
  <div class="modal-card mt-3">
    <label>
      是否启用
    </label>
    <d-radio-group
    [name]="'item-group'"
    [values]="items"
    [direction]="'row'"
    [(ngModel)]="currentSelectedItem"
    (change)="valueChange($event)"
  >
  </d-radio-group>
  </div>
  <div class="modal-card mt-3">
    <label>
      备注
    </label>
    <textarea  dTextarea class="form-input-box" name="description" [(ngModel)]="PutDepartment.note"></textarea>
  </div>
</div>
